package BinaryTree;

/**
 * User:浪尘
 * Date:2022-09-28
 * Time:16:13
 */
public class Test {
    public static void main(String[] args) {
        TestBinaryTree testBinaryTree = new TestBinaryTree();
        TestBinaryTree.TreeNode root = testBinaryTree.createTree();
//        testBinaryTree.preOrder(root);
//        System.out.println();
//        testBinaryTree.inOrder(root);
//        System.out.println();
//        testBinaryTree.postOrder(root);
//        int s = testBinaryTree.size(root);
//        System.out.println(s);
//        int s2 = testBinaryTree.getLeafNodeCount(root);
//        System.out.println(s2);
       // int ret = testBinaryTree.getKLevelNodeCount(root,3);
        //System.out.println(ret);
//        int ret2 = testBinaryTree.getHeight(root);
//        System.out.println(ret2);
          TestBinaryTree.TreeNode ret3 = testBinaryTree.find(root,'H');
        System.out.println(ret3);
    }
}
